package com.ruohi.gift.order;

/**
 * 订单状态举类
 * 
 * @author Administrator
 * 
 */
public class OrderStatus {
	public static final int CANCELED = 0; // 已取消
	public static final int WAIT_PAY = 1; // 等待付款
	public static final int PAYED = 2; // 已付款
	public static final int ASSORTING = 3; // 配货中
	public static final int SHIPPED = 4; // 已发货
	public static final int FINISHED = 5; // 已完成
	public static final int REFUND = 6; //已退款

	/**
	 * 根据订单状态的值，返回订单状态字符串
	 * @param orderStatus
	 * @return
	 */
	public static String showStatus(int orderStatus) {
		String str = "";
		switch (orderStatus) {
		case CANCELED:
			str = "已取消";
			break;
		case WAIT_PAY:
			str = "等待付款";
			break;
		case PAYED:
			str = "已付款";
			break;
		case ASSORTING:
			str = "配货中";
			break;
		case SHIPPED:
			str = "已发货";
			break;
		case FINISHED:
			str = "已完成";
			break;
		case REFUND:
			str = "已退款";
			break;
		}
		return str;
	}
	
	public static String showOrderTips(int orderStatus){
		String str="";
		switch(orderStatus){
		case CANCELED:
			str="您的订单已取消！";
			break;
		case WAIT_PAY:
			str="您的订单已经成功下单，请尽快付款完成交易，谢谢！";
			break;
		case PAYED:
			str="恭喜，您的订单已经成功付款，我们会在最短时间内给您送货，谢谢！";
			break;
		case ASSORTING:
			str="您的订单正在配货中，详细信息请咨询……";
			break;
		case SHIPPED:
			str="您的订单已经发货，请您做好收货准备。";
			break;
		case FINISHED:
			str="您的订单交易已经完成，谢谢您的惠顾！";
			break;
		case REFUND:
			str="您的订单交易已退款，感谢您的支持，期待您的再次光临！";
			break;
		}
		return str;
		
	}
}